home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
gnulib
/
libsrc98.zoo
/
atoi.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-29
|
225b
|
14 lines
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
__EXTERN long strtol __PROTO((const char *, char **, int));
int
atoi(str)
const char *str;
{
assert ((str != NULL));
return (int) strtol(str, (char **)0, 10);
}